/**
 * Copyright (c) 2016-2019 Lain System All rights reserved.
 *
 * Lain Sys
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.job.task;

import io.renren.modules.wms.entity.DailyTempEntity;
import io.renren.modules.wms.service.DailyTempService;
import io.renren.utils.ValidationUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;

/**
 * dailyDataCleanTask
 *	每日定时清理任务
 * @author lain
 */
@Component("dailyDataCleanTask")
public class DailyDataCleanTask implements ITask {

	@Resource
    private DailyTempService dailyTempService;

	private Logger logger = LoggerFactory.getLogger(getClass());

	@Override
	public void run(String params){
		logger.info("DailyDataCleanTask定时任务正在执行，参数为：{}", params);
		dailyTempService.removeAll();
	}
}
